package com.itheima.method;

/**
 * @Author 王加鑫
 * @Date 2021/4/22 9:26
 * @Version 1.0
 * 初始方法
 */
public class MethodDemo01 {
    public static void main(String[] args) {
        study();

    }

    /*
    吃饭
     */
    public void eat(){
        System.out.println("吃饭");
    }

    /*
    学习
     */
    public static void study(){
        MethodDemo01 demo01 = new MethodDemo01();
        demo01.eat();
        System.out.println("学习");
    }
}
